package com.xiaoxian.org.mapper;

import com.xiaoxian.basic.mapper.BaseMapper;
import com.xiaoxian.basic.util.jwt.Payload;
import com.xiaoxian.org.domain.Department;
import com.xiaoxian.org.domain.Employee;
import com.xiaoxian.org.query.DepartmentQuery;
import com.xiaoxian.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * 通过username查询员工是否存在
     * @param username
     * @return
     */
    Employee findByUsername(String username);

    Employee findByLogininfoId(Long id);

    List<Employee> findByShopId(Long id);

}
